package tagdb.ui.util;

import com.jgoodies.looks.HeaderStyle;
import com.jgoodies.looks.Options;

import javax.swing.*;

/**
 * Class containg GUI helper methods.
 *
 * @author Harald Barsnes
 */
public class GuiUtil {

    /**
     * This method sets the look&feel for the application.
     */
    public static void setLookAndFeel() {
        UIManager.put(Options.USE_SYSTEM_FONTS_APP_KEY, Boolean.TRUE);
        Options.setUseSystemFonts(true);
        //Options.setDefaultIconSize(new Dimension(18, 18));
        UIManager.put(Options.HEADER_STYLE_KEY, HeaderStyle.BOTH);
        Options.setPopupDropShadowEnabled(true);
        try {
            com.jtattoo.plaf.mint.MintLookAndFeel.setTheme("Default", "Not Licenced", "TagDB");
            //UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
            UIManager.setLookAndFeel("com.jtattoo.plaf.mint.MintLookAndFeel");
            //UIManager.setLookAndFeel(Plastic3DLookAndFeel.class.getName());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
